{% load i18n %}
{% extends "base.html" %}
{% block h_message %}
  {%if postback%}
    <div class="info {%if not result%}error{%endif%}">{{msg}}</div>
  {%endif%}
{% endblock %}
 {% block content %}
<form action="/admin/link" method="post" id="addlink" name="addlink">
   <div class="wrap">
      <h2>{%ifequal action 'edit'%}{%trans "Edit link"%}{%else%}{%trans "Add Link"%} {%endifequal%}</h2>
      <div id="poststuff">

<div id="submitlink" class="submitbox">

<div id="previewview">
</div>

<div class="inside">
<p>&nbsp;</p>
</div>

<p class="submit">
<input type="submit" tabindex="4" value="{% trans "Save"%}" name="save" class="button button-highlighted"/>
</p>

<div class="side-info">
<h5>{%trans "Related"%}</h5>

<ul>
<li><a href="/admin/links">{%trans "Manage All Links"%}</a></li>


</ul>
</div>
</div>

<div id="post-body">
<div class="stuffbox" id="namediv">
<h3>{%trans "Name"%}</h3>
<div class="inside">
	<input type="text" id="link_name" value="{{link.linktext}}" tabindex="1" size="30" name="link_name"/><br/>
    {%trans "Example: Nifty blogging software"%}</div>
</div>

<div class="stuffbox" id="addressdiv">
<h3>{%trans "Web Address"%}</h3>
<div class="inside">
	<input type="text" id="link_url" value="{{link.href}}" tabindex="1" size="30" name="link_url"/><br/>
    {% blocktrans%}Example: <code>http://xuming.net</code> - don't forget the <code>http://</code>{%endblocktrans%}</div>
</div>

<div class="stuffbox" id="commentdiv">
<h3>{%trans "LinkComment"%}</h3>
<div class="inside">
	<input type="text" id="link_comment" value="{{link.linkcomment}}" tabindex="3" size="30" name="link_comment"/><br/>
    {% blocktrans%}Example: Xuming's Blog{%endblocktrans%}</div>
</div>



<input type="hidden" value="{{link.key.id}}" name="id"/>
<input type="hidden" value="{{action}}" name="action"/>

</div>
</div>

   </div>
   </form>
 {% endblock  %}